const express = require("express");

const app = express();

// 静态文件服务
app.use(express.static("./public"));

// 数据解析
app.use(express.json());
app.use(express.urlencoded({ extended: false }));

// 启动服务
app.listen(3000, () => {
  console.log("http://127.0.0.1:3000");
});

// npm i nodemon -g
// nodemon ./1.js
